package com.blb.community.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 投诉建议 
 * </p>
 *
 * @author gch
 * @since 2023-12-05
 */
@Getter
@Setter
@TableName("zy_complaint_suggest")
public class ZyComplaintSuggest implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId("complaint_suggest_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long complaintSuggestId;

    /**
     * 小区id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long communityId;

    /**
     * 类型(投诉、建议)
     */
    private String complaintSuggestType;

    /**
     * 内容
     */
    private String complaintSuggestContent;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 更新者
     */
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 投诉人ID
     */
    private Long userId;

    /**
     * 处理状态0标识已解决 1未解决
     */
    private String disposeStatus;

    /**
     * 处理信息
     */
    private String disposeMessage;
    /**
     * 图片
     */
    private String image;
}
